import Layout from '@/layout'

const demoRouter = {
  name: 'demoRouter',
  path: '/demoRouter',
  component: Layout,
  meta: {
    title: '页面布局',
    icon: 'el-icon-s-platform'
  },
  children: [
    {
      path: 'layoutOne',
      component: () => import('@/views/demo/index.vue'),
      name: '页面布局一',
      meta: { title: '页面布局一', noCache: false }
    },
    {
      path: 'layoutTwo',
      component: () => import('@/views/demo/layoutTwo.vue'),
      name: '页面布局二',
      meta: { title: '页面布局二', noCache: false }
    },
    {
      path: 'test',
      component: () => import('@/views/demo/test.vue'),
      name: 'test',
      meta: { title: 'test', noCache: false }
    },
    {
      path: 'componentDemo',
      component: () => import('@/views/demo/componentDemo.vue'),
      name: 'componentDemo',
      meta: { title: 'componentDemo', noCache: false }
    },
  ]
}

export default demoRouter
